<template>
	<view class="content">
		<view class="index-serch">
			<uni-search-bar @confirm="search" :focus="true" v-model="form.search" @blur="blur" @input="input"
				@cancel="cancel" @clear="clear">
			</uni-search-bar>
		</view>

		<view v-for="(item,index) in list" :key="index">
			{{item.shanglian}}

		</view>


		<uni-card></uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					search: '',
					key: '16f4e0c089de67d31920be33f717216d',
					num: 10,
					page: 1
				},
				list: []
			}
		},
		onShow() {
			this.showIndex()
		},
		methods: {
			input(e) {

			},
			blur(e) {

			},
			clear() {
				this.form.word = ''
				this.showIndex()
			},
			showIndex() {
				var from = {
					A: 1,
					B: 2,
		
				}
				// console.log(this.$http(from),'------')
				this.$http({
					url: 'msdl/index',
					data: from,
					API: 'CHEN',

				}).then(res=>{
					console.log(res,'0000000');
				})
				// this.$http.post('/sdfewdmsdl/index', this.form).then(res => {
				// 	console.log(res, '---具体数据');
				// 	this.list = res.list
				// })


			}
		}
	}
</script>

<style scoped lang="scss">
	.index-serch {}

	/deep/ .uni-searchbar__box {
		border-radius: 50px !important;
	}
</style>